<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>XMP Toolkit SDK: public/include/XMPCommon/Interfaces/IMemoryAllocator.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xmp_tagline_small.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XMP Toolkit SDK
   &#160;<span id="projectnumber">6.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('IMemoryAllocator_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">IMemoryAllocator.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="IMemoryAllocator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef IMemoryAllocator_h__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define IMemoryAllocator_h__ 1</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// =================================================================================================</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// Copyright 2014 Adobe</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// All Rights Reserved.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the terms</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// of the Adobe license agreement accompanying it. If you have received this file from a source other </span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// than Adobe, then your use, modification, or distribution of it requires the prior written permission</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// of Adobe.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// =================================================================================================</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="IVersionable_8h.html">XMPCommon/Interfaces/BaseInterfaces/IVersionable.h</a>&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="XMPCommonFwdDeclarations_8h.html">XMPCommon/XMPCommonFwdDeclarations.h</a>&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceAdobeXMPCommon.html">AdobeXMPCommon</a> {</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html">   29</a></span>&#160;        <span class="keyword">class </span><a class="code" href="XMP__Environment_8h.html#aac6a4810b1f485f147ab833be63f4d7b">XMP_PUBLIC</a> <a class="code" href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html">IMemoryAllocator_v1</a></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> * APICALL allocate( <a class="code" href="namespaceAdobeXMPCommon.html#a1c85c2f558b495c3d41eabe692a96cf2">sizet</a> size ) <a class="code" href="XMPCommonDefines_8h.html#a5a929113d3d50bda3fb7135a5c8b24a2">__NOTHROW__</a> = 0;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> APICALL deallocate( <span class="keywordtype">void</span> * ptr ) <a class="code" href="XMPCommonDefines_8h.html#a5a929113d3d50bda3fb7135a5c8b24a2">__NOTHROW__</a> = 0;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> * APICALL reallocate( <span class="keywordtype">void</span> * ptr, <a class="code" href="namespaceAdobeXMPCommon.html#a1c85c2f558b495c3d41eabe692a96cf2">sizet</a> size ) <a class="code" href="XMPCommonDefines_8h.html#a5a929113d3d50bda3fb7135a5c8b24a2">__NOTHROW__</a> = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html#a3557c223280972c7a4e0219d9d4181c3">   56</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html#a3557c223280972c7a4e0219d9d4181c3">~IMemoryAllocator_v1</a>(){}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">        #ifdef FRIEND_CLASS_DECLARATION</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                FRIEND_CLASS_DECLARATION();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">        #endif</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                <a class="code" href="XMPCommonDefines_8h.html#a89e9297f497c2b3f1179788c31d24da4">REQ_FRIEND_CLASS_DECLARATION</a>();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        };</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;};</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#endif  // IMemoryAllocator_h__</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclassAdobeXMPCommon_1_1IMemoryAllocator__v1_html"><div class="ttname"><a href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html">AdobeXMPCommon::IMemoryAllocator_v1</a></div><div class="ttdoc">Version1 of the interface that represents an interface to be implemented by client in case he is inte...</div><div class="ttdef"><b>Definition:</b> <a href="IMemoryAllocator_8h_source.html#l00029">IMemoryAllocator.h:29</a></div></div>
<div class="ttc" id="aXMPCommonDefines_8h_html_a5a929113d3d50bda3fb7135a5c8b24a2"><div class="ttname"><a href="XMPCommonDefines_8h.html#a5a929113d3d50bda3fb7135a5c8b24a2">__NOTHROW__</a></div><div class="ttdeci">#define __NOTHROW__</div><div class="ttdef"><b>Definition:</b> <a href="XMPCommonDefines_8h_source.html#l00147">XMPCommonDefines.h:147</a></div></div>
<div class="ttc" id="aXMP__Environment_8h_html_aac6a4810b1f485f147ab833be63f4d7b"><div class="ttname"><a href="XMP__Environment_8h.html#aac6a4810b1f485f147ab833be63f4d7b">XMP_PUBLIC</a></div><div class="ttdeci">#define XMP_PUBLIC</div><div class="ttdef"><b>Definition:</b> <a href="XMP__Environment_8h_source.html#l00221">XMP_Environment.h:221</a></div></div>
<div class="ttc" id="anamespaceAdobeXMPCommon_html"><div class="ttname"><a href="namespaceAdobeXMPCommon.html">AdobeXMPCommon</a></div><div class="ttdef"><b>Definition:</b> <a href="IConfigurable_8h_source.html#l00021">IConfigurable.h:21</a></div></div>
<div class="ttc" id="aXMPCommonFwdDeclarations_8h_html"><div class="ttname"><a href="XMPCommonFwdDeclarations_8h.html">XMPCommonFwdDeclarations.h</a></div></div>
<div class="ttc" id="anamespaceAdobeXMPCommon_html_a1c85c2f558b495c3d41eabe692a96cf2"><div class="ttname"><a href="namespaceAdobeXMPCommon.html#a1c85c2f558b495c3d41eabe692a96cf2">AdobeXMPCommon::sizet</a></div><div class="ttdeci">uint32 sizet</div><div class="ttdef"><b>Definition:</b> <a href="XMPCommonDefines_8h_source.html#l00176">XMPCommonDefines.h:176</a></div></div>
<div class="ttc" id="aXMPCommonDefines_8h_html_a89e9297f497c2b3f1179788c31d24da4"><div class="ttname"><a href="XMPCommonDefines_8h.html#a89e9297f497c2b3f1179788c31d24da4">REQ_FRIEND_CLASS_DECLARATION</a></div><div class="ttdeci">#define REQ_FRIEND_CLASS_DECLARATION()</div><div class="ttdef"><b>Definition:</b> <a href="XMPCommonDefines_8h_source.html#l00137">XMPCommonDefines.h:137</a></div></div>
<div class="ttc" id="aIVersionable_8h_html"><div class="ttname"><a href="IVersionable_8h.html">IVersionable.h</a></div></div>
<div class="ttc" id="aclassAdobeXMPCommon_1_1IMemoryAllocator__v1_html_a3557c223280972c7a4e0219d9d4181c3"><div class="ttname"><a href="classAdobeXMPCommon_1_1IMemoryAllocator__v1.html#a3557c223280972c7a4e0219d9d4181c3">AdobeXMPCommon::IMemoryAllocator_v1::~IMemoryAllocator_v1</a></div><div class="ttdeci">virtual ~IMemoryAllocator_v1()</div><div class="ttdef"><b>Definition:</b> <a href="IMemoryAllocator_8h_source.html#l00056">IMemoryAllocator.h:56</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_f832923ad3cb060bc87ad85e68b8a1c3.html">public</a></li><li class="navelem"><a class="el" href="dir_0fb2101ba02d68f078970216a1fe0334.html">include</a></li><li class="navelem"><a class="el" href="dir_13a16c6fe91841c884a316194c73d6c1.html">XMPCommon</a></li><li class="navelem"><a class="el" href="dir_a2aafb81ccb63bf25660f5baa8263a1b.html">Interfaces</a></li><li class="navelem"><a class="el" href="IMemoryAllocator_8h.html">IMemoryAllocator.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
